package net.xo68.destiny.manager.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 用户登录dto
 * @author wuxie
 * @version 2020-11-8
 */
@ApiModel("用户登录dto")
@Data
public class UserLoginDto implements Serializable {

    @ApiModelProperty("账号")
    @NotEmpty(message = "账号不能为空")
    private String account;

    @ApiModelProperty("密码")
    @NotEmpty(message = "密码不能为空")
    private String required;

    public UserLoginDto() {
    }

    public UserLoginDto(String account, String required) {
        this.account = account;
        this.required = required;
    }
}
